package com.me.chat.pojo.suport;

import java.io.Serializable;

/**
 * @Author qiu
 * @create 2020/2/14 15:20
 */
public class ResultBean<T> implements Serializable {

    /**
     * 接口返回状态 200: 正常返回
     *           500: 有错误
     */
    private Integer statusCode;

    private T  content;

    private String info;

    public ResultBean() {
    }

    public ResultBean(Integer statusCode, T content) {
        this.statusCode = statusCode;
        this.content = content;
    }

    public ResultBean(Integer statusCode, T content,String info) {
        this.statusCode = statusCode;
        this.content = content;
        this.info = info;
    }
    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer status_code) {
        this.statusCode = status_code;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "ResultBean{" +
                "statusCode=" + statusCode +
                ", content=" + content +
                ", info='" + info + '\'' +
                '}';
    }
}
